/*
 * @Author: xuhua
 * @Date: 2023-09-13 17:02:03
 * @LastEditors: xuhua
 * @LastEditTime: 2023-09-18 17:34:35
 * @FilePath: /v3-element-admin/src/directive/index.ts
 * @Description:
 */
import type { App } from "vue";

import { hasPerm, hasRole } from "./permission";
import { throttle } from "./throttle";

// 全局注册 directive
export function setupDirective(app: App<Element>) {
	app.directive("hasPerm", hasPerm);
	app.directive("hasRole", hasRole);
	app.directive("throttle", throttle);
}
